package com.zzyl.mapper;

import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingProjectMapper {

    List<NursingProjectVo> selectByCondition(String name, Integer status);

    void insert(NursingProject nursingProject);

    NursingProjectVo selectById(Long id);

    void updateById(NursingProject nursingProject);

    void deleteById(Long id);

    @Select("select * from nursing_project")
    List<NursingProject> selectAll();
}
